Skip to content

Refactor actions#30

Merged
javidahmed64592 merged 4 commits intomainfrom
refactor-actions
Mar 6, 2026
Merged

Refactor actions#30
javidahmed64592 merged 4 commits intomainfrom
refactor-actions

Conversation

@javidahmed64592
Copy link
Owner

@javidahmed64592 javidahmed64592 commented Mar 6, 2026

This pull request refactors the setup and verification steps in the GitHub Actions workflows, mainly by removing the dedicated set-package-name action and integrating its logic directly into relevant workflow steps. It also enhances the verify-structure action to support custom directory and file checks, and updates documentation accordingly.

Workflow and Action Refactoring:

  • Removed the set-package-name composite action and replaced it with an inline Bash step in the setup-uv-python action, simplifying environment variable setup for PACKAGE_NAME. (.github/actions/setup/set-package-name/action.yml removed, [.github/actions/setup/setup-uv-python/action.ymlR16-R20](https://github.com/javidahmed64592/template-python/pull/30/files#diff-eb0c5f8c32887b82dbf98c3a7f932b53161cf242424a178864e21e0962a563faR16-R20))
  • Updated all workflow files (build.yml, ci.yml) to remove references to the set-package-name action, relying instead on the new inline step. ([[1]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721L16-L19), [[2]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721L30-L33), [[3]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL52-L55))

Enhancements to Structure Verification:

  • Added support for optional expected-directories and expected-files inputs in the verify-structure action, allowing workflows to check for additional directories and files within site-packages. ([.github/actions/build/verify-structure/action.ymlR4-R13](https://github.com/javidahmed64592/template-python/pull/30/files#diff-bd52ab90a0a08f216430880f6229c55c9cce1a60a5fd113c7bb08980a030748dR4-R13))
  • Modified the shell script in the verify-structure action to dynamically build and verify lists of required directories and files based on provided inputs. ([.github/actions/build/verify-structure/action.ymlR49-R92](https://github.com/javidahmed64592/template-python/pull/30/files#diff-bd52ab90a0a08f216430880f6229c55c9cce1a60a5fd113c7bb08980a030748dR49-R92))

Documentation Updates:

  • Removed documentation for the obsolete set-package-name action and updated usage examples to reflect the new approach. ([[1]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-ed9b8f4a4f6633f84a0d372314788cf32c9dac97a3753a915b9a848ebc14c4cfL68-L82), [[2]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-ed9b8f4a4f6633f84a0d372314788cf32c9dac97a3753a915b9a848ebc14c4cfL158), [[3]](https://github.com/javidahmed64592/template-python/pull/30/files#diff-ed9b8f4a4f6633f84a0d372314788cf32c9dac97a3753a915b9a848ebc14c4cfL219))
  • Expanded documentation for the verify-structure action to describe its new capabilities and provide advanced usage examples with custom directory and file checks. ([docs/WORKFLOWS.mdL232-R235](https://github.com/javidahmed64592/template-python/pull/30/files#diff-ed9b8f4a4f6633f84a0d372314788cf32c9dac97a3753a915b9a848ebc14c4cfL232-R235))

@javidahmed64592 javidahmed64592 merged commit fe22847 into main Mar 6, 2026
9 checks passed
@javidahmed64592 javidahmed64592 deleted the refactor-actions branch March 6, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant